package models

type AccountRelation struct {
	ID         int64 `gorm:"column:id" json:"id"`
	AccountId  int64 `gorm:"column:account_id" json:"account_id"`
	Type       int64 `gorm:"column:type" json:"type"`
	RelationId int64 `gorm:"column:relation_id" json:"relation_id"`
}

func (this *AccountRelation) GetList(where map[string]interface{}) (AccountRelations []AccountRelation) {
	db := Db
	db.Where(where).Find(&AccountRelations)
	return
}

func (this *AccountRelation) GetListByWhere() {

}
